<?php

use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $arr =  [];
        for($i=0;$i<50;$i++){
        	$tmp = [];
        	$tmp['uname']=  str_random(8);
        	$tmp['upwd'] = Hash::make('lamp159');
        	$tmp['email'] = rand(100000,999999);
        	$tmp['profile'] = '/Uploads/2cf5e0fe9925bc319e50ec015edf8db1cb13701e.jpeg';
        	$tmp['sex'] = rand(0,1);
        	$arr[] = $tmp;
        }
        DB::table('shop_user')->insert($arr);
    }
}
